{$contents}

{literal}
<div style="text-align:left; padding:10px;">
<h2>Source</h2>

<pre class="code">
&lt;?php
$post = DomFgPost::getInstance();
	
$contents = array(
	'type' => 'panel',
	'title' => 'DomFg form items',
	'style' => 'margin: 10px; width: 800px;',
	'layout' => 'table',
	'action' => $this->getUrl('inputList'),
	'layoutConfig' => array(
		'columns' => 2,
		'columnWidths' => array(150,'*'),
	),
	'items' => array(),
	'buttons' => array(
		array(
			'name' => 'Button1',
			'title' => 'Button 1',
		),
	),
);

for( $i=1; $i&lt;=10; $i++) {
	$contents['items'][] = array(
		'title' => 'CheckBox '.$i,
		'type' => 'checkBox',
		'name' => 'checkBoxes[]',
		'value' => $i*10,
		'checked' => in_array($i*10, (array)$post->checkBoxes ),
	);
}
$this->view->contents = DomFg::render( $contents );	
?&gt;
</pre>
</div>
{/literal}